﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using Domain.Dummies.Dtos.Definitions;
using Domain.Dummies.Dtos;
using Domain.Dummies.Dtos.Collections;

namespace Services.Dummies.DeaneryService
{
    [ServiceContract]
    public interface IDeaneryService
    {
        [OperationContract]
        Guid CreateGroup(SessionDto session, GroupBaseDto group);

        [OperationContract]
        bool AddStudentToGroup(SessionDto session, Guid groupId, Guid studentId);

        [OperationContract]
        bool RemoveStudentFromGroup(SessionDto session, Guid studentId);

        [OperationContract]
        Guid CreateExam(SessionDto session, ExamDto exam);

        [OperationContract]
        bool PassExam(SessionDto session, Guid examId, Guid studentId, int mark, string comments);
                
        [OperationContract]
        bool RemoveGroup(SessionDto session, Guid groupId);



        [OperationContract]
        StudentListGuidsDto GetStudentsByGroup(SessionDto session, Guid groupId);

        [OperationContract]
        GroupListDto GetGroups(SessionDto session);

        [OperationContract]
        ExamListDto GetExamResults(SessionDto session, Guid studentId);
    }
}
